package com.ktjy.dao;

import com.ktjy.entity.Pet;
import org.springframework.stereotype.Repository;

//@Component("petDao") //等价于<bean id="petDao" class="com.ktjy.dao.PetDaoImpl">
@Repository("petDao2")
public class PetDaoImpl2 implements PetDao {
    @Override
    public int insert(Pet pet) {
        System.out.println("宠物插入数据库成功");
        return 1;
    }
}
